package com.itliuhouse.success.controller;


import com.itliuhouse.success.pojo.Cat;
import com.itliuhouse.success.service.ICatService;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 刘皓
 * @since 2024-01-19
 */
@RestController
@RequestMapping("/cat")
public class CatController {

    @Resource
    private ICatService iCatService;


    @RequestMapping("cat_find")
    public Cat getCatById(){
        Cat cat = iCatService.getById(1);
        return cat;
    }


}
